package LogThread;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

import LogThread.Memory;

public class WriteLog {
	public void make_log(String msg_buf, String ip) {

		// java.util.Date now_time = new java.util.Date();
		// now_time = Calendar.getInstance().getTime();
		
		SimpleDateFormat sdf = new SimpleDateFormat("yy/MM/dd,hhmmss");

		Calendar cal = Calendar.getInstance();
		Date currentTime = cal.getTime();
		String date = sdf.format(currentTime);
		
		Memory.mmr_log += date + "," + msg_buf + "," + ip + "\n";
	}
}
